{if !$smarty.const.MAINTENANCE}
{if !$smarty.get.ajax}
<!DOCTYPE html>
<html>
<!--[if lt IE 7 ]> <html class="ie6"> <![endif]-->
<!--[if IE 7 ]>    <html class="ie7"> <![endif]-->
<!--[if IE 8 ]>    <html class="ie8"> <![endif]-->
<!--[if IE 9 ]>    <html class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html class=""> <!--<![endif]-->
    <meta charset="utf-8">
    {foreach item=meta from=$view->getMetaTags()}
    <meta name="{$meta.name}" content="{$meta.content}" http-equiv="{$meta.http-equiv}" >
    {/foreach}
    <title>{$webTitle}</title>
    <link rel="author" href="humans.txt" />
    {foreach item=css from=$view->getStyles()}
    <link rel="stylesheet" href="styles/{$css.href}" type="text/css" media="{if isset($css.media)}{$css.media}{else}screen{/if}" >
    {/foreach}
    {foreach item=js from=$view->getScripts()}
    <script type="text/javascript" src="{if $js.webpath==true}javascript/{/if}{$js.src}"></script>
    {/foreach}
</head>
<body>
    <div id="container">
		{if $view->getBlankPage()}
			{assign var="service" value=$view->service}
			{include file="$service.tpl"}
		{else}
			{include file="body.tpl"}
		{/if}
		</div>
	</body>
</body>
</html>
{else}
{$ajax}
{/if}
{else}
{include file="maintenance.tpl"}
{/if}